﻿@model MPosters.ViewModels.ProfileViewModel

    @using Microsoft.Web.Helpers;
     
    @{
        ViewBag.Title = "Index";
    }
     
    <h2>Index</h2>
     
       @using (Html.BeginForm("Upload", "WebImage", System.Web.Mvc.FormMethod.Post, new { @encType = "multipart/form-data" }))
       {
         @Html.DisplayFor(x => x.ImageUrl)<br/>
         @FileUpload.GetHtml(initialNumberOfFiles:1, allowMoreFilesToBeAdded: true, includeFormTag: false, addText: "Add Files", uploadText: "Upload File")
            <input type="submit" name="submit" value="upload" />
       }

   
